<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<h1>本地页面1</h1>
<button id="test">测试事件</button>
<script type="text/javascript">
    function nativeCall() {
        alert('原生调用了')
    }
    document.getElementById('test').onclick = function () {
        var command = {
            'action':'test'
        };
        shadow.event(JSON.stringify(command));
    }
</script>
</body>
</html>